<!-- 这里是返回登陆页面组件小按钮 -->
<template>
  <div>
      <el-popconfirm
          confirm-button-text='好的'
          cancel-button-text='不用了'
          icon="el-icon-info"
          icon-color="red"
          title="确定退出登陆吗？"
          @confirm="out"
      >
        <el-button slot="reference" type="danger" style="margin-top: 10px" round @click="out">
          logout
        </el-button>
      </el-popconfirm>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "logout",
  methods: {
    out() {
      this.$router.push('/desc')
      localStorage.clear(); 
    }
  }
}
</script>

<style scoped>

</style>